﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DataAccessLayer;
using System.Data;

namespace BusinessLayer
{
    public class CartItem
    {
        public string equipid { get; set; }
        public string userid { get; set; }

        public CartItem()
        {
            equipid = "";
            userid = "";
        }
        public CartItem(string eid, string uid)
        {
            equipid = eid;
            userid = uid;
        }

        public void save_item()
        {
            DataAccessLayer.csDAL objdata = new DataAccessLayer.csDAL();
            List<csparameterListType> par = new List<csparameterListType>();

            par.Add(new csparameterListType("@EQUIPMENT_ID", SqlDbType.VarChar, equipid));
            par.Add(new csparameterListType("@USERID", SqlDbType.NVarChar, userid));

            objdata.executespreturnnd("Add_cart_item", par);
        }
    }
}